<ul>
	<? if ($add_new): ?>
	   <li><a id="item_0" class="action" href="#0">Новый</a></li>
	<? endif; ?>
    <? foreach ($objects as $object): ?>
       <li><a id="item_<?=$object['id'];?>" class="action" href="#<?=$object['id'];?>"><?=$object['title'];?></a></li>
    <? endforeach; ?>
</ul>